package com.qding.park.manager.pojo.enums;

/**
 * @author Administrator
 *线下收费种类
 */
public enum ParkFeeModelEnum {
	CASH("现金", 0),
	BANKCARD("银行卡",1),
	COLLECTION("托收",2),
	APP("APP",3);
	
	public static String getDescByCode(int type){
		String temp="";
		if(type==CASH.getType()){
			temp=CASH.getDesc();
		}else if(type==BANKCARD.getType()){
			temp=BANKCARD.getDesc();
		}else if(type==COLLECTION.getType()){
			temp=COLLECTION.getDesc();
		}else if(type==APP.getType()){
			temp=APP.getDesc();
		}else{
			temp="";
		}
		
		return temp;
	}
	
	/** 描述 */
	private String desc;
	/** 枚举值 */
	private int type;

	private ParkFeeModelEnum(String desc, int status) {
		this.desc = desc;
		this.type = status;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}
